package com.xyoto.community.service;

import com.xyoto.community.dto.SaveQuestionCommentLoveDTO;
import com.xyoto.community.utils.Result;
import org.springframework.stereotype.Service;

/**
 * ClassName:   问答父级评论点赞service接口
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/
public interface QuestionCommentLoveService {

    /**
     * 根据问答评论id查询父级评论点赞数
     *
     * @param id 问答id
     *
     * @return 点赞数
     */
    Integer getQuestionCommentsLoveCountById(Integer id);

    /**
     * 新增问答评论点赞
     * @param commentLoveDTO
     * @return
     */
    Result saveQuestionCommentLove(SaveQuestionCommentLoveDTO commentLoveDTO);

    /**
     * 取消问答评论点赞
     * @param questionCommentLoveId 问答评论点赞id
     * @return
     */
    Result removeQuestionCommentLove(Integer questionCommentLoveId);
}
